package com.econtact.business.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.econtact.business.dao.UserDao;
import com.econtact.business.entity.User;
import com.econtact.business.service.UserService;

@Transactional
@Service("userService")
public class UserServiceImpl implements UserService{
	
	@Resource
	private UserDao userDao;
	

	public void insertUser(User user)
	{
		
		try {
			userDao.insertUser(user);
		} catch (Exception e) {
			e.printStackTrace();
		}
		System.out.println("insertSave...................................");
		//user.getId();
		System.out.println("111111111");
		System.out.println("111111111");
		System.out.println("111111111");
		
		//
		
		//userDao.insertUser(user);
	}

	public boolean validateUser(String loginName, String pwd)
	{
		// TODO Auto-generated method stub
		return false;
	}

	public boolean validateUserNameIsExist(String name)
	{
		// TODO Auto-generated method stub
		return false;
	}


}